#include<iostream>
#include<string>

using namespace std;

int main(){
	string s1="abb";

	string t11="abb";
	int r11=s1.compare(t11);
	
	cout<<s1<<"compare-->"<<t11<<"-->"<<r11<<endl;



	string t12="aaa";
	int r12=s1.compare(t12);
	cout<<s1<<"compare-->"<<t12<<"-->"<<r12<<endl;

	
	string t13="acc";
	int r13=s1.compare(t13);
	cout<<s1<<"compare-->"<<t13<<"-->"<<r13<<endl;

	string t14="abba";
	int r14=s1.compare(t14);
	cout<<s1<<"compare-->"<<t14<<"-->"<<r14<<endl;



	int t=(s1==t11);
	cout<<s1<<"=="<<t11<<"->"<<(s1==t11)<<endl;
	if(t) cout<<"这两个是相等的哦！！！"<<endl;
	//这里就是字符串的比较
	//这里就像我们面向对象里面的函数运算符的重载
	




	return 0;

}
